import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.List;

/**
 * @program: 2022.3.7复习
 * @description:
 * @author: 李鑫月
 * @create: 2022-03-07 11:26
 **/
class Student{
    private String  name;
    private String classes;
    private  double score;

    public Student(String name, String classes, double score) {
        this.name = name;
        this.classes = classes;
        this.score = score;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getClasses() {
        return classes;
    }

    public void setClasses(String classes) {
        this.classes = classes;
    }

    public double getScore() {
        return score;
    }

    public void setScore(double score) {
        this.score = score;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", classes='" + classes + '\'' +
                ", score=" + score +
                '}';
    }
}
public class Testdemo {
    public static void main(String[] args) {
        String str1="welcometochina";
        String str2="come";
        List<Character> list=new ArrayList<>();
        for (int i = 0; i <str1.length() ; i++) {

                if(!str2.contains(str1.charAt(i)+"")){
                    list.add(str1.charAt(i));
                }

        }
        System.out.println(list);
    }
    public static void main3(String[] args) {
        ArrayList<Integer> integers=new ArrayList<>();
        integers.add(23);
        integers.add(3);
        integers.add(203);
        integers.add(13);
        Collections.reverse(integers);
        System.out.println(integers);
        Collections.sort(integers);
        System.out.println(integers);
    }
    public static void main2(String[] args) {
        ArrayList<Student> students=new ArrayList<>();
        students.add(new Student("bit","2022-1",99.5));
        students.add(new Student("ait","2021-1",93.5));
        students.add(new Student("qit","2022-2",94.5));
        students.add(new Student("zit","2022-5",95.5));
        System.out.println(students);
    }
    public static void main1(String[] args) {
        Integer a=new Integer(123);
        System.out.println(a.toString());
        
    }
}
